package com.lcz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lcz.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 公共的方法 不兼容
     *
     * @return
     */
    List<User> selectCommon(@Param("dataPublic") String dataPublic);

    /**
     * 需要兼容
     *
     * @return
     */
    List<User> select(@Param("dataPublic") String dataPublic);

    /**
     * 测试分页
     *
     * @param page
     * @return
     */
    IPage<User> selectPageS(Page<User> page, @Param("dataPublic") String dataPublic);
}
